<template>
  <button @click="start()">{{countTime === 0 ? '发送验证码' : countTime}}</button>
  <button @click="pause()">点击结束</button>
  <h1>{{countTime}}</h1>
</template>

<script>
// import { ref } from 'vue'
import { useCountDown } from '@/compositions'
export default {
  setup () {
    return { ...useCountDown(5) }
  }
}
</script>

<style>

</style>
